using System;
using WPFCommon.Interface;

namespace KeyenceCl3000
{
    public class OutValueProvider : IDataProvider
    {
        public event Action<double> NextDataReady;

        protected virtual void OnNextDataReady(double obj)
        {
            NextDataReady?.Invoke(obj);
        }

        public void SetData(double newValue)
        {
            OnNextDataReady(newValue);
        }
    }
}